package com.wey.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/login")
@RestController
@Api(tags = "登录控制器")
public class LoginController {

    //登录成功后重定向地址
    @PostMapping("/loginSuccess")
    @ResponseBody
    public String loginSuccess(){
        return "登录成功";
    }

    @GetMapping("/getUser")
    @ResponseBody
    @ApiOperation(value = "获取用户信息")
    public String getUser(){
        return "登录成功";
    }

}
